package com.vegetable.modules.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 价格要素变动VO
 * </p>
 *
 * @author Qwen
 * @since 2025-09-27
 */
@Data
@ApiModel(value="价格要素变动VO", description="价格要素变动VO")
public class PriceElementChangeVO {

    @ApiModelProperty(value = "日期")
    private Date orderTime;

    @ApiModelProperty(value = "商品ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long commodityId;

    @ApiModelProperty(value = "商品名称")
    private String commodityName;

    @ApiModelProperty(value = "规格ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long specsId;

    @ApiModelProperty(value = "规格名称")
    private String specsName;

    @ApiModelProperty(value = "商品类型")
    private String category;

    @ApiModelProperty(value = "标准")
    private BigDecimal standard;

    @ApiModelProperty(value = "包装单价（按重均摊）- 最低价")
    private BigDecimal packageUnitPriceMin;

    @ApiModelProperty(value = "包装单价（按重均摊）- 最高价")
    private BigDecimal packageUnitPriceMax;

    @ApiModelProperty(value = "蔬菜单价- 最低价")
    private BigDecimal goodsUnitPriceMin;

    @ApiModelProperty(value = "蔬菜单价- 最高价")
    private BigDecimal goodsUnitPriceMax;

    @ApiModelProperty(value = "每公斤成本价格- 最低价")
    private BigDecimal costWeightMin;

    @ApiModelProperty(value = "每公斤成本价格- 最高价")
    private BigDecimal costWeightMax;

    @ApiModelProperty(value = "入库类型")
    private Integer storageType;

    @ApiModelProperty(value = "入库类型描述")
    private String storageTypeDescription;
    
    @ApiModelProperty(value = "数据详情列表")
    private java.util.List<PriceElementDetailVO> details;
}